﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;

namespace BLL
{
    public class ActivityManage
    {
        public ArrayList GetALLActivitiesByClubID(int clubid)
        {
            try
            {
                ActivityService memberdal = new ActivityService();
                return memberdal.GetALLActivitiesByClubID(clubid);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }

        }
        public ArrayList GetALLActivities(string  sql)
        {
            try
            {
                ActivityService memberdal = new ActivityService();
                return memberdal.GetALLActivities(sql);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }

        }

        public bool DeleteActivity(Activity activity)
        {
            try
            {
                ActivityService memberdal = new ActivityService();
                return memberdal.DeleteActivity(activity);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }
        public bool AddActivity(Activity activity)
        {
            try
            {
                ActivityService memberdal = new ActivityService();
                return memberdal.AddActivity(activity);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

        public bool UpdateActivity(Activity activity)
        {
            try
            {
                ActivityService memberdal = new ActivityService();
                return memberdal.UpdateActivity(activity);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.ToString());
            }
        }

       
    }
}
